#include "common.hpp"
int main()
{
    // 获取shm
    int shmId = getShm();
    // 获取共享内存
    char *mem = (char *)attachShm(shmId);
    // 写入数据
    int cnt = 0;
    pid_t pid = getpid();
    snprintf(mem, MAX_SIZE, "i am client process");
    // 去关联
    detachShm(mem);
}